import ajaxAsync from '../../src/utils/ajaxAsync'

function getOrderListByFilter (orderType, pageIndex, pageSize) {
  let postData = {
    FILTER: orderType,
    PAGE_INDEX: pageIndex,
    PAGE_CAPACITY: pageSize
  }
  return ajaxAsync('/order/list2', postData)
}

function getOrderDetailForCommon (orderId) {
  return ajaxAsync('/order/query2', { ORDER_ID: orderId })
}

export {
  getOrderListByFilter,
  getOrderDetailForCommon
}